Fixed problem that was causing the creation of crazy trees. There were a couple of potential NaNs in choose_attribute function, so I safeguarded against those. Now it seems to produce nice trees.