move n into local context to fix warning
fix unsigned/signed warning
use dim_vector(1,n) instead of deprecated (n)
probing sampler added (log-det)