Ground states of linear rotor chains via the density matrix renormalization group