Bug fixes

I propose a couple of fixes for the following bugs:
1. Lambda max would be determined as a Nan because some variables have zero variance (commit 4407e8a)
2. The predict method would crash when all variables were eliminated due to high lambda (commit 794a337)