implemented slice sampling for main metropolis step
implemented slice sampling for sample step