Permutations with cuadratic memory.