Estimate and Replace: A Novel Approach to Integrating Deep Neural Networks with Existing Applications