constructor(arraySize) {
    this.arraySize = arraySize;

    // Fill tree array with zeros.
    this.treeArray = Array(this.arraySize + 1).fill(0);
  }
Constructor creates empty fenwick tree of size 'arraySize',
however, array size is size+1, because index is 1-based.

@param  {number} arraySize