perf(lp): do not allocate unit matrices for the tail

Signed-off-by: Lev Nachmanson <levnach@microsoft.com>