use better compression for sorted array