Throw out unused sample_weights, add little optimization

Use xor instead of branching for calculation of classifier_error