Review of proximity analysis  C++