Add the functionality of the makeCacheMatrix and cacheSolve methods to create a special matrix, calculate its inverse and cache it.