adding implementation to the functions makeCacheMatrix() and cacheSolve()