added C4.5 function (not complete) and fixed stuffs

* fixed memory leaks
* created function build_C45_tree and gain_ratio (which is related to
it)
* added free functions