Refactor the MemoryStorage class and specs
Merge pull request #1 from TTPS-ruby/refactoring

Refactor the MemoryStorage class and specs