Replaced memcpy by for loop, because memcpy was copying overlapped memory regions
Bug fix at error functions, the method getLogisticMandatory wasn't virtual, and it must bt
Solve bug with logistic_cross_entropy