An Agglomerative Hierarchical Clustering Algorithm for improving Symbolic Object retrieval