updating rod cutting DP to construct solution