No. 3 Stanford beat Syracuse 77-59