Application of the density matrix renormalization group method to finite temperatures and two-dimensional systems