move resizable array queue to its own class