An exact algorithm for a multicommodity min-cost flow over time problem