implemented scatter. communication between process 0 and the other process have to be done by send and receive.