Eliminate race in bulk::malloc
Eliminate races from bulk::inclusive_scan.
Avoid working beyond the end of the array in scan implementation.
Avoid race in bulk::adjacent_difference.
Re-tune scan example