add c# code for k min, and unit test code.