a new way for power of 2 and find first missing

element