Confidence interval for median, and small bug fix

- new function for bootstrap confInterval
- bugfix in depth function