implemented 'makeCacheMatrix' & 'cacheSolve' functions