What other events—if any—changed Montana as much the railroad