Parametrised intervals

Interval arithmetic rewritten to use parametrised intervals.
Tests pass.
Neat changes!