Provides implementation for makeCacheMatrix and cacheSolve