Added my code for the assignment: caching the inverse of a matrix