Fixed implementations of element and peek in CycleQueue.