Fix bug in test pattern generator

offset and peak size was hard-coded
Add tiny bit of skeleton for template_match peak finder