A Novel Hierarchical Algorithm for Bearing Fault Diagnosis Based on Stacked LSTM