add toString methods to similarity functions