Added extension for fitting with Huber Loss function