pub fn cost<T>(input: &Matrix<T>, row: &[usize]) -> T where T: LapJVCost,
Calculate solution cost by a result row