c++ for max path sum