Kyrgios beats No. 1 Medvedev at Montreal,