double break_down(Eigen::VectorXd &v, double cutoff)
{
	std::vector<double> v2;
		v2.resize(v.count());
		for (int i = 0; i < v.count(); ++i)
			v2[i] = v(i);
	return break_down(v2,cutoff);
}
double median(Eigen::VectorXd &v)
{
	std::vector<double> v2;
	v2.resize(v.count());
	for (int i = 0; i < v.count(); ++i)
		v2[i] = v(i);

	return median(v2);
}