Imported from https://github.com/pascalinedescloux/lasso-zero