Refactor ssim::Impl::SimImpl into ssim::Sim; test code for OpenMP