Implementation of Binary Search Tree in Java