added pig script for selecting -max- top k