Added prefix sum (basics)