makeCacheMatrix: creates a list of getters and setters for a matrix;
cachesolve: returns the cached inverse of the matrix, if previously calculated;
If not, calculates the inverse and sets the cache value.