A generic Java implementation of a BinarySearchTree, includes standard functions as well as a function to access elements by index.