Introduction to Information Retrieval: Flat clustering