Lab4 seems to be working. But it is slow.
Change to faster implementation. Not working for 9 or more processes