Update Chamfer to SEDT
move cluster extraction to specific file