Tim Roughgarden Algorithm Course Count Inversion HW