New algorithm removePoint