finished with binary search tree
checked it again