https://mixrolikus.cc/video/_trih2YN9vM/longest-increasing-path-in-a-matrix-leetcode-329-python