Made search method recursive. Tried to test BinaryTree search method but it seems that it is not working.