functions within header moved to helpfunctions.c
downsweep and hillissteele implemented for more workgroups