added comment for longest common prefix.