assign.data function

Assign data to clusters