Added code for printing all paths in tree