Added more functionality to binary search tree
code.