added NaN test for check_ldlt_factor
added doc in code for check_ldlt_factor