Modified cachematrix.R

Added implementation for makeCacheMatrix