Computes the sum of all values between start and end (exclusive) in O(log n).
start
end
int range(int start, int end) => prefix(end) - prefix(start);