Queue with Arrays (C++)