getProbabilities: Function that calculates the cumulative probabilities to declare efficacy and futility
Description
Calculates the cumulative probabilities to declare efficacy and futility under the null hypothesis and the alternative hypothesis. It also returns the p-values for declaring efficacy and futility.