Average interpolation implemented and tested.