Created functions to cache the inverse of a matrix.

For assignment 2 of 'R Programming' course.