def findValue(value)
      if ! @sorted
        @map.sort{ |a,b| a[0] <=> b[0] }
        @sorted = true
      end
      
      @map.binsearch{|x| x[0] >= value}[1]
    end
def findValue(value)
      if ! @sorted
        @map.sort{ |a,b| a[0] <=> b[0] }
        @sorted = true
      end
      
      @map.binsearch{|x| x[0] >= value}[1]
    end
Given an integer value, find which region it falls in and return the object associated with that region.