NDBuffer: new class for a n-dimensional data store