timeout option added
speed testing added
cg building for n^3