added NaN test for check_lower_triangular
added doc in code for check_lower_triangular