Added code for doing least-squares regression of distortion functions.