Fixed parallel prefix sum algorithm, now works properly.
Added DEBUG=0 (or 1) option to compile to turn on/off optimization (in makefile)