Implement buildGaussianPyramid and simple tests for it