initial working version of cholesky based solve