Initial commit.

A working version of two similarity functions.