AArray: fix: decrement counter when removing a node.
AArray: use bsr() to find the next power of 2 of a number.