Curry scores 40 in three quarters as Warriors roll to 20-0