Add algorithms for dynamic connectivity