to compile (you can ignore the warning messages)
g++ -std=c++0x   -O3 -ffast-math -lm -o UniDoc_seq UniDoc_seq.cpp
g++ -std=c++0x   -O3 -ffast-math -lm -o UniDoc_struct UniDoc_struct.cpp
