queue on static arrays
queue on dynamic arrays