GLM update. Added generalized gradient method for solving regularized LSM problem. Chanded some glm internals.