week 4 assignment works on small input files
week4, recurisve dfs() unwrapped as while loop