updated makeCacheMatrix.R and cacheSolve.r functions