added reordering feature to Butina clustering