added vector/array test and adapted c++ queue impl