Matlab portion of the  community tagger