Base Java Implementation For Confidence Chains