Remove numCols argument to compute_cdf().
Declare a variable for the ID bit mask in compute_cdf().
First iteration of the reduce phase in the Blelloch scan algorithm in compute_cdf() works.
Iterate to the end of the reduce phase.