Maximum Path Sum Matrix Leetcode