Change base class name.

* Union find is an algorithm, dynamic connectivity is one of the problems that union find can applied. I have misunderstood these terms before.