sorting-and-tree-algorithm-example