added new function to perform multilevel binomial test