computeImpl method designed, Gaussian pyramids in a separate function