Independent oscillator model of a heat bath: Exact diagonalization of the Hamiltonian