Finished week 4

Had to increase stack size to handle the huge graph.
scala -J-Xmx1G -J-Xss500m week04.scala