change around output map to be a vector with the index in the vector being the id of the output so the threads can simply index into their vector of outputs