Coded makeCacheMatrix and cacheSolve functions