Fixed a mistake in linear-maximization that caused and index out of bounds error. I used del instead of remove which changed the index.
Also moved graph construction outside of functions so we are not doing that multiple times. Functions are now passed the graphs
Added timer to overall program instead of individual functions
This required appending output after writing elapsed time instead of a straight file copy.