Improve LZ matching