Fix an error in bit manipulation snippet

Removed a wrong parameter in lowBit macro.
Add fenwick tree implementation