Binary Indexed Trees practice