Longest Increasing Path in a Matrix — CaffeCode