implement Queue by linklist and array