final inefficient draft of dynamic connectivity
add reflexive property
initial thoughts about maintaining a set of connected components (in order to optimize algorithms)