Added matchTemplate and minMaxLoc