fixed contains method in BinarySearchTree.cpp