Preparation for Boruvka Minimal Spanning Tree primitive