first version of Demsar's CD plotting code