Functions for Inverse Matrix

Codes and comments added