Implement prefix scan on result of presence map

* Started implementing prescan operation

* Finished prefix sum implementation...(maybe)

* Prefix scan working