Optimized and tested CacheEfficient_kNCN. Added NCNDistance structure.