Microsoft founder Bill Gates has purchased Irma Lake Lodge in Wyoming, a 492-acre ranch that once belonged to Western legend "Buffalo Bill" Cody.