Using std::shared_ptr for Mat at effect
Frist implementation super class Smallve.