Refcactored, fixed find(), count(), taking n instead of n-1 edges for MST