Add method that can measure the similarity of two region