Top-k similarity implementation using C++ and MPI