Revise the read/write function to record the L,U.