Second iteration of binary-search-tree