Yankees beat Orioles 6-4 in 10 innings for sweep