Refactor: Replace memory aliasing with std::vector
Refactor: Replace memory aliasing with std::vector