added range update and pt query; also fenwickTree is 0-indexed