Parametrised intervals

Interval arithmetic rewritten to use parametrised intervals.
Tests pass.
Yup, changed.