Algorithm uses multiprocessing.

Copied from project at simm2/hungry_monsters.