A rough, still unfinished version of our similarity algorithms.