Former Cornell student pleads guilty to death, rape threats