add function for efficiently computing pignistic probabilities obtained from the GBT