Compressed permutations