Changed memory storage to a circular buffer

Is this import necessary? Isn't this test part of the memory package already?