Horrendously inefficient compression algorithm