Implemented a remove method in TreeT