makeCacheMatrix and cacheMatrix functions implemented