added softmax layer class
Lenet now uses logistic or softmax last layer depending on number of classes in training set
added resize function to imagedataset