Binary Tree.h modified to Sedgewick's solution