submitted the functions for inverse of matrix from cache.