Queue and array methods