Multiple template matching

Issue #2804
Basic multiple template matching function.  I don't know how to compute accuracy and how to avoid computing of dft on main image as it is said in the issue. Please help me with those 2 things.