new script for selecting top k without calling pig