Code of Binary Index Tree.