Binary Index Tree [ Offline Idea ]