pub fn same(dv: &DataVec, len: usize) -> bool
Return whether the first n data in data vector have same target values.
If the specified length is greater than the length of data vector, it will panic.