Add Partial2DSum class.

Verified with http://abc005.contest.atcoder.jp/submissions/149013