Organic reaction mechanism classification using machine learning