Rewritten FeatureMatching library