Alternate way just for fun

An alternate cleaner method to check cache and return a matrix inverse