Scatter/Gatter and ScatterV implemented

A simple loop across all PE is used for Scatter and ScatterV.
Putmem is used to implement Gather.
GatherV is still not implemented.
Also some fixes to smalloc together with an additional buffer to commrec have been added.