[common] Add inverse of monotone cubic spline
Implements the inverse of a monotone spline. No checks are performed if the spline is strictly increasing or decreasing. The inverse is tested in the dedicated unit test by chaining it into a unity function.