Improved bootstrap and confidence interval computation