modified CrossCorrelate() to apply kernel directly [WORKS, THOUGH SLOWER THAN PROVIDED SOLUTION]