fix remove method of BinarySearchTree class