Double precision used internally for distances computation
+ bug fix (duplicate points removal)