Update cachematrix.R

Implemented the makeCacheMatrix and cacheSolve functions.