Move memory to bits and small_bits
Memory interface, NextRange