Input and output with file.
Inverse matrix calculation. Code restructured.