Analogy between thermal and mass diffusion effects of a free convective flow in rectangular enclosure