The Hubbard model in the two-pole approximation