add queue implementation using array