add k-means example
fix bug and add link to tutorial