Update cachematrix.R

Updated makeCacheMatrix and cacheSolve functions