improved precision
updated comment
Merge pull request #36 from twitter/35_faster_DP

35 faster dp