Given a long word and a bit index, returns the next higher order bit set, or returns -1.
Given a number n, this method returns n if n is a power-of-two.
Given a number n, this method returns n if n is a power-of-two.
Otherwise, it returns the smallest power-of-two larger than n.