added similarity code, data files