Adding function to fit data which minimises sign(error). Tested.