implemented function makeCacheMatrix and cacheSolve