Metrics refactoring and adding Jaccard index
.