square roots and k largest element