Classification of Solar Flares using Data Analysis and Clustering of Active Regions