Added code to do cross correlation with a template

We can also make templates for tipped umbrellas.