growing array and queue