140504-iss001: modify qr and cholesky routines