Add data_storage class.

It implements data buffer with some associated object stored in a single block of memory.