Implemented a binary search tree