Update Algorithms/BIT.cpp

Reorganize the code