glmnet implementation of update dictionary