Using my own array queue