Implemented queue ADT using an array.