Native C for Template Matching with SVM