use separate length memory for key comparisons