Inverse working on square matrices v1.0