Took off redundant part from compute_feature_distance