Implementation of function inverse

Add the algorithm from chapter three to invert a strictly increasing
integer function of two arguments.