Prefix sums

Determining range sums efficiently