Added negative numbers to be included in trees. 

Must protect log function so because log(negative) is undefined.
Protected log function by putting negative log values to -100000