fixed bug in startParallelAlgo function. The global boolean vector was never being unset