Add `count_leading_ones` function

Add the following function in `src/util.hpp`:

	template<typename N>
	inline unsigned int count_leading_ones(N n);

This function returns the quantity of leading `1` bits in `n`.