generate feature matrix
clustering example