add longest common prefix code