Binary Indexed Tree implement in C test