extract_ci function

Extract confidence intervals from a vector of samples