Boruvka algorithm using a very simple union find algorithm