calculate_min_dist function

Calculate the Smallest Distance Across Unique Combinations of Major Axes