all the c scripts now with cholesky