Program assignment 2

cache the inverse of a matrix