n-dimensional piecewise linear interpolation using Delaunay triangulation in C++