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