Implemented modified heirarchical clustering to cluster species