Greedy algorithm for minimizing the weighted sum of completion times.