update solution for 3sum and ksum
update solution for 3sum and ksum