Removed the thread header file from scatter.inl and gather.inl and remov...

...ed some redundant code from reducebykey.inl