Compresses text using some basic combinatorics