Implemented caching and enabled l. regression with different lambda.