Start of missing value (NaN) support in Java. Trees have now method that
calculates penalty for NaN.