Updated BinarySearchTree now it gets object pointer