Theory and Application of the Density Matrix Renormalization Group