Hong-Ou-Mandel interferometer with one and two photon pairs