program to implement a queue using array