public static List<Double> furthestPoint(Matrix points, List<Double> point) {
        double furthestDistance = Double.NEGATIVE_INFINITY;
        int furthestIndex = -1;
        int size = points.getNumRows();
        for (int i = 0; i < size; i++) {
            List<Double> row = points.getRow(i);
            double dist = squaredDistance(point, row);
            if (dist > furthestDistance) {
                furthestDistance = dist;
                furthestIndex = i;
            }
        }
        return points.getRow(furthestIndex);
    }