Refactor: Replace malloc dx/lx grids with std:;vector