Counted queue extended to thread safety. Added test with two writers and one reader
checked two writers and two readers. round-robin and publish-subscribe