Record Similarity Function

See: Record Distance Function.