Cardinals beat Reds 2-1 in 10 innings