fix bug: lu_decompose returns false if lower right element of upper triangular matrix is 0.