Fix scaling problem with multiprocessing in find-orientations/paintGrid

This change should make find-orientations scale well on all platforms, please test! On Windows, however, it will use up a lot more memory because it isn't sharing the common state via a global variable like fork()-based multiprocessing allows.