bitmap: Add functions to set/clear ranges of bits