Yanks beat Rays 4-2 behind Cole, Hicks, first team to 50 wins