get the nearest power of two