Create knearest.cs