Faster edge collapse algorithm