Add correlation helper functions
Add correlation helper functions

Address issue #148

Add _autocorrelator and _crosscorrelator helper functions to reduce
the number of times the normalization is calculated for the function
correlate. This change did not affect the API.

davidbrough1/pymks,davidbrough1/pymks,fredhohman/pymks,XinyiGong/pymks,awhite40/pymks