Adding C++ version of nonmatching interpolation