Compressing Chemistry Reveals Functional Groups