Changed memory storage to a circular buffer

You should be able to drop this import and since they're in the same package refer to them as `StatsBuffer` withouth the `memory` prefix.