Implement missing max_distance parameter in match_descriptors