Use DP on UniquePathsII instead of DFS