Modified array implementation of queue ADT to support generic elements