Added functions to do hyperbolic ratio fitting (using matteobox)