added frame animation
implemented 2d cross-correlation