Added test for testing some java api and completed k-means document
clustering using tf-idf.