move hdc clustering into its own file