making changes in startParallelAlgo function so that the shared queue is populated as soon as outQueue is og size inputQueueSize