function getParentIndex(index) {
    return Math.floor((index - 1) / 2);
}
Determines the index in an array that is the parent of the given index.
@param {int} index The index to find the parent of. 
@returns {int} The index of the parent value.
@private