added clustering weight to similarity matrix during matching