Multireference correlation in long molecules with the quadratic scaling density matrix renormalization group.