Almost completed part 3. Still need to calculate the silhouette coefficient, improve output and refactor code