completed coding of makeCacheMatrix and cacheSolve functions