C++ exercise for Computer Vision