Improved linear interpolation

Sign in to test your solution.