def simplifyPoints(rect,bd):
    return makePairs(fastUnknot2.unknot(rect,bd)[1].xSorted)
def forAnna(word,width):
    return (fastUnknot2.unknot(fromWordToRectDiag(word,width),20000)[1]).toRectDia().toStringNice()