Binary Tree

Problems from the following link solved:
http://cslibrary.stanford.edu/110/BinaryTrees.html#s2