Implemented learning curves for linear regression