implemented makeCacheMatrix and cacheSolve functions in cachematrix.R