Faster by computing sent_vec only one time
Dynamic k-max