No. 25 NC State downs Stanford 88-79