An improved algorithm for finding efficient schedules with respect to total flowtime and maximum tardiness