Made variable compression future-proof

Short variable names could have potentially replaced long variable name
prefixes. Replacements are now made longest first. Renamed r, s, and t
for readability.