Completed C++ interpolation class. Moved main test code to separate file