compress files to mathematical equations