Array of arrays in.. Returns the length of the longest one
@returns {number}
@private
function getLongestArray (arrays) {
  var lengths = arrays.map(array => array.length)
  return Math.max.apply(null, lengths)
}