cleaned up access/PrefixSum