Queue by array