Program Asgn 2 - Inverse of Matrix calculation

Calculate inverse of matrix and cache it and bring the inverse result
from cache if this needs to be calculated repeatedly