Added swap to memory plugin, closing #3