BGP Best-path selection algorithm, first pass, not tested yet.