fixed bugs in bst::remove and added avl::remove support