integer permit instead of float percent
no need to use unique_ptr to vectors. Removed queue.