def heuristics_v{version}(distance_matrix: np.ndarray) -> np.ndarray: