Adding code source for the benchmark between dynamic and static polymorphism while running neighbors distance computation