boruvka working version