implemented clsoed form ione at a time cross validation calculation for least squares