proj04: first commit. Rank0 distributes load, functions to determine if process should send/or receive at each step