Removed duplicate entropy computations

Extracted unconditional entropy from gain function, to avoid computing
it over and over again with no purpose.
Added minimal timer to script around tree building