Binary Search Tree Puzzle Solver final