changes to cachematrix.r: implementation of makeCacheMatrix and cacheSolve