A binary search tree implementation in java