Pubmed similarity experiments

improve calculation of distance calculation for medium size wikis

Change-Id: Icb0b6ea3f4a387a21efc307ab68b3cc8ab62809d