If we don't change our slicing method (#14), there are still some improvements to be made in collapseTopology.js. Especially the mergeArcs function is taking a lot of time. Either writing our own version or merging multiple neighbors at once instead of one could be ways to reduce the impact of mergeArcs.