improved performance and accuracy of similarity()
Merge branch 'dev' of https://github.com/kbenoit/quanteda into dev