Pairing of a few Fermi atoms in one dimension