Seol mar théacs é seo: Coplanar repeats by energy minimization