renamed find method
finished first draft of union-find