ridge regression finally fixed. last part of exercise 3, mean needs to be fixed before feeding it to the ridge regression