detect power of two