Stochastic Series Expansion for a XY-model