add clustering
Merge pull request #129 from paulswartz/grouping

add clustering