How Binary Search Trees work part2(Advanced Algorithms)