use integer index instead of natual index for subset sum DP solution