vetorial implementation of queue