refactored c5 algorithm and c5 tests. Added several test cases.