Adding tree problem from MIT Comp Sci intro final. All code initially provided on test except the cousin method.