refactor(memory): rename memory2 package to memory (#3413)