Refactor: Replace malloc minmax_x with std::vector