Clustering seeds using binary tree