Huskies outlast Buffs in thriller