Code to do record linkage in Karma