not yet working, first version of function interpolation table
function interpolation table (also usable as cache). now working: closest and linear interpolation