Implement Queue in Array and Linked List