hash = word => {
  let h = 0;

  for (let i = 0; i < word.length; i++) {
    h += word.charCodeAt(i) * Math.pow(base, word.length - i - 1);
  }

  return h;
}
Creates the hash representation of 'word'

@param String
@return Number