DENSITY MATRIX AND WANNIER FUNCTIONS IN TERMS OF LOCALIZED ORBITALS