Added initial version. Does basic clustering.