utility functions to cache inverse of a matrix

utility functions to cache inverse of a matrix