Predicting Solar Flares using CNN and LSTM on Two Solar Cycles of Active Region Data