Calculation of cross-correlation was implemented.