1. A method for storing a range of integer values in a memory, comprising: determining a subrange within the range, so that, in a first and a second plurality of bit subsequences from binary representations respectively of a start value and an end value of the subrange, all except at most one bit subsequence in the first plurality is either equal in value to a corresponding bit subsequence in the second plurality or has a value of 0 and a corresponding bit subsequence of the second plurality has a maximum value; forming a first bit string based upon values of the first and second plurality of bit subsequences; and storing the first bit string in the memory.