Add Triangle - 1D DP