made circular queue generic
Da fuck?