Added ilog2()