Added support for points which are sequences (tuple, array, etc) using the first two elements as coordinates, ignoring others elements
Speed up the code and add 3D support