check similarity between branches