preferredPolesByIdeal function

Set preferred pole by ideal element