Update Kth largest in an array