Changed MatchTemplate arg from path to matrix

Now you can avoid loading the template into memory for every search. My C++ skills are a bit rusty so please review :)