longest for array of words