#5 improved test files
#5 implemented the algo in python, it tends to be really slow
#5, implemented the algo in c++, generates output to be submitted