C code to heuristically analyse 'knots' in open chains such as polymers.