inverse and cholesky

New approach to taking inverse and matrix sqrt. If there's no problems
with the cholesky factorization, it uses that. Otherwise, it will use an
eigenvalue decomposition