ideal point algo