Update cachematrix.R

Implementation of both functions makeCacheMatrix and cacheSolve