Basic BST implementation in Java