Similarity package for R based on libsim.