Finished write_matrix_to_file function.

This was the last function to complete in the LDPC_parity_check_matrix class.