web worker rewrite

Use transferable typed arrays for manipulation and transfer. Big speed
increase