Ludogorets ended Europa League Group B unbeaten and as runaway leaders after a 2-1 win away to Dinamo Zagreb.