Implementation of a Polymorphic Binary Search Tree in Java