Buffaloes pull out 59-56 win over Cal