Implementation of binary serach tree using Java