naive implementation of a binary search tree in java