added functions for ridge regression and created basic one parameter cross validation function