Billionaire Fredriksen Buys Rig, Ends Hyundai Dispute