No. 3 Trojans nip Rochester in ugly contest, 35-32