added scripts for linear regression with ridge penalty