Fixed wrong support point index at start and end point.
Merge pull request #473 from bilke/fix-interpolation

Fixed wrong support point index at start and end point.