range encoded bitmap index
added histogram functionn