Implementation of the makeCacheMatrix and cacheSole functions