Print out only longest path, factor out invsqrt and dodeque into separate files