Symmetry Detection through Entropy Minimization