Iteratively re-weighted least squares