added similarity calculation
Merge pull request #4 from corpaul/addSimilarity

added similarity calculation