first working version of negativeLogLikelihood() method in OutputLayer.java