Root Finding Algorithm Python Template Matching Meaning