ex 1.3.14 - resizable array implementation of queue, with tests