longest common prefix 2nd