Rewrite ComparisonCompactor in org.junit.ComparisonFailure to be easier to read

Remove duplicate prefix/suffix compaction, modularize methods for computing shared prefixes/suffixes, introduce thread-safety. Improve general code readability.