adds get_independencies method to JointProbabilityDistribution class