Added queueSize as parameter to ThreadedBartizan