Linear regression functions using Huber and bisquare psi functions. Optimal weights are calculated using IRLS algorithm.