Multiple bugs fixed:
1) preparing matrices bugs fixed
2) cross_validation functions completely
3) running predictions - for the whole test sets - OK (our original engine only)