Web Worker for collision test. Works, but is veeery slow compared to the iterative version.