Updated cachematrix.R

Updated functions for makeCacheMatrix and cacheSolve