Small optimized union-find graph library. Designed for use in monte-carlo simulations.