Scanner in = new Scanner(r);
try
{
final int n = in.nextInt();
final int d = in.nextInt();
final ArrayPointSet pts = new ArrayPointSet(d, n);
for (int i = 0; i < n; ++i)
for (int j = 0; j < d; ++j)
pts.set(i, j, in.nextDouble());
return pts;
}
finally
{
try