I recoded average.cpp to use cv::blur instead of manually scanning the Mat