Created base for implementation of CacheEfficient_kNCN and Parallel_kNCN.