MRG: Add sample weighting to decision trees

This PR is the first part of #522. It  adds sample weighting to decision trees and forests.