Second part of the assignment

the function 'cacheSolve' with comments on its workings