feat: refactor memory, introduce list type.