first working prototype of thread_queue used with ranges (comp)