Starting to make a 3d interpolation function that can be extended to 4d