A parallel hardware implementation for 2-D hierarchical clustering based on fuzzy logic