Merge pull request #10 from szabadka/master

Make the histogram clustering function more generic.