Queue data structure using an array based implementation