first working implementation of probabilistic inducing partition