Some optimisations.
Very close to a well working product. About to do a few optimisations to save some of the entropy calculation time.
Did a simple optimisation which improved performance for the entropy calculation.
made it so multiple box could be split at each iteration as the heuristic to which which box to split is a bit long.