Added two DP solutions