Elastic Function Registration Using Deep Neural Networks