add memorization and DP solutions for uniquePath