Free energy calculations for rings and chains formed by dipolar hard spheres.