Preparations for clustering