yay heap stuff!

running this with ./a.out 1000000 2 > test
results in test being 658MB... yay we're gonna kill Thor!