makeCacheMatrix and cacheSolve function

makeCacheMatrix creates the matrix and calculates the inverse of the
matrix. cacheSolve calculates the inverse of the matrix. If the inverse
is calculated before, it returns the cached inverse.