Adding interpolation algorithm

Adding interpolation algorithm