A tool for get top k items from a large set. A template one