Fixed enumerator, but O(n) additional memory