extract Distance module

responsible for providing logic to calculate similarity distances
deprecate InputMatrix#calculate_jaccard