Various BST Questions implemented in Java