Made the queues control the threads.

New record 105.6ms with 1 sieving, 3 splitting and 1 writing thread.