Move MemoryTable and PartitionedMemoryTable to their own files.