@SuppressWarnings("unchecked")
	private Item[] resize(int newCapacity) {
		Item[] t = (Item[]) new Object[newCapacity];
		for (int i = 0, j = front; i < size(); i++, j = (j + 1) % N)
			t[i] = q[j];

		N = newCapacity;
		front = 0;

		return t;
	}