Softmax regression algorithm identifies MNIST handwritten numbers (C++ implementation)