Finding top K entries from a list