An Integration-Based Approach to Pattern Clustering and Classification