Harry Kane brought his tally to 30 goals for the Bundesliga season as his leaders Bayern Munich beat rivals Borussia Dortmund 3-2.