Implementation of a BinarySearchTree