Cooling of a small sample of Bose atoms with accidental degeneracy