Graphical Lasso algorithm adapted from R package "huge"