Adding constructor to PrefixSum