Added inverse and determinant calculation.
Needs compiling/testing on OCR system.