ugly but fast parallel attempt at main computation area
cleaning up a bit
impressive speed improvement thanks to parallel collection