split patterns table by length