Add support arbitrary number of points

Added support for an arbitrary number of points using vector.