Complete the implementation of vector-interpolation