use unflipped halfstrip to create lut and bugfixed, and add readout function to read lcts when we use sort algorithm