lz_lcpit: simplify and optimize build_LCPIT()