find min/max K elements