changed order of definitions within KnotComplex.hs