https://stackoverflow.com/questions/26132620/jacobian-matrix-computation-for-artificial-neural-networks