fixed some tree bugs, including nodes reappearing after remove, and traversal() not working after remove