added functions makeCacheMatric and cacheSolve for caching inverse matrix