Adding tree programs and also program for sorting using stack
code for isSubtree and printAllPathsToSum