Igor Matanović scored twice against his former employers as Freiburg fought back from a goal down to claim all three points.