makeCacheMatrix and cacheSolve functions implemented