Create a document matrix for kmeans

This is a exercise for me more than anything and I know how it works.