Removed duplication in compute method of TagCloud