please don't resize vectors but rather allocate if differently given on the heuristic:
SGVector<float64_t> tmp_output_for_i;
if (get_prob_heuris()!=PT_NONE)
  tmp_output_for_i=SGVector<float64_t>(m_multiclass_strategy->get_num_classes())
else
  tmp_output_for_i=SGVector<float64_t>(num_machines)