perf(lp) : avoid inserting unit matrices in to the tail

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