BitmapArrayIntSet and bits changed to support min() and max()