Added a function computing the minimal cross entropy for a set of training data