add polynomial interpolation with linear fallback, not tested or documented

Signed-off-by: Mattias Andrée <maandree@operamail.com>