added kernel ridge regression code