Seperate the scan kernel and compute kernel. Add a simple parallel prefix scan sum