tripletization of queue
tripletization of queue