Fix bug in heapsort if only one element in array.
Add sample_weight support in tree induction.
Optimizations.
More optimizations.