A forward network simplex algorithm for solving multiperiod network flow problems