currently working on efficient version of arraybased queue