KNN distance changed to calc diff between Node1.X and Node2.* Frames
changed to use hashmap