Update cachematrix.R

updated the makeCacheMatrix.R and cacheSolve.R functions that can cache and solve a square invertible matrix passed as argument