added output to examples/kmedioids