IBM Research Report The Optimality of the On-Line Greedy Algorithm in Carpool and Chairman Assignment Problems