new implementation of k--means algorithm using radical pilot api