Minimum weighted sum of completion times for n jobs