Added quicker Log base 2 implementation