Implemented BST algorithm and added new tests.