MAP benchmark debugged. but parallelized distance calc has some problem