adds barycentric interpolation mex