A Machine Learning Approach to Predict Chemical Reactions