Rafael Nadal storms back to beat Daniil Medvedev at the ATP Finals