Done with HW3. Naive implementation without optimization. The prefix sum kernel is hard-coded.