added support for top k clusters from all of frontier