helper files and demo for modified canopy clustering