Computing High-dimensional Confidence Sets for Arbitrary Distributions