Walker's sampling algorithm