print statements modified
replace visited with status vector, which encodes {-1,0,1} = {sackgasse, not visited, visited=existence of cycle}
gemerged