Temporary solution to maxPathSum.java