print all paths with sum & max sum non-recursive