added working polynomial interpolation