A solution is provided in which regions are formed incrementally as points
are added to a database. Each time a point is added to the database, it
may be assigned to a new region. This new region may then be compared
against each of the current set of regions until one is found with which
it can be successfully merged. Then, this newly merged region may be
compared against each of the other regions until one is found with which
it can be successfully merged. This process repeats until there are no
more regions that can be merged. Determining whether or not a region can
be merged with another region may involve determining whether or not the
points in one region differ from the points in the other region only
along one dimension. If so, then the point can be successfully merged
with the region.