Refactor on matrix inverse. Removed affine inverse because A * A-1 != I. Working on other methods.