before switching to debug branch
Optimized and working for single point interpolation with random number cleanup. This is a good version