191: initial commit
191: finish coding
191: bug fix

DP should start from 1, not 0 (index 0 was processed during
initialization).
191: finish