added queue resizing
known issue with resizing array during dequeue operation