A worm algorithm for the fully-packed loop model