helper functions for binomial heap