Cross-entropy error function is added (full support in CPU and GPU backends)