Implementation of a Binary Search Tree in Java