Avoiding some synchronization issues. Fixing the iteration over the sorted feature list in the weak learner. Minor changes around the code, most for the sake of clarity.
Changed some floats to weight_type. Setting polarity even if it has no effect. Added some parenthesis to avoid messes with pointers (hell, lost hours looking for this).
Comment.
Doing my best to avoid using pointers to objects.