Notes on similarity scoring algorithms