Implement cached matrix inversion.

Implement methods makeCacheMatrix and cacheSolve.