Java program for binary search tree