Was asked to implement interpolation function in C. Just used the basic formula for linear interpolation but I feel that I was missing something. How would you do this?