prelim implementation of part 1 (just to see if things work)
finished part1 of part4, saved in simple-part1.c
added prelim implementation of part4 #2 (dfs stuff)