New method: remove duplicate points