fixed bug in bimodality p-value function