added uniform sampling to feature_matches.hpp