Trigram string similarity for UNICODE and single byte character set strings

An initial implementation of the trigram similarity using child datasets.
Rather than calculating common each time, it may be more efficient to do this inside the SUM