PrefixSum memory leak fixed. The same instance of PrefixSum can be reused now.