begin making similarity matrix