-o5 does not do anything. -o3 is the maximal level of optimization.
The graph is now loaded using maps
Commented code and useless variables cleanup
Finalized refactor of calcAndWrite