Design and Implementation of an Approximate Softmax Layer for Deep Neural Networks