Implemented both makeCacheMatrix() and cacheSolve() functions