Parallel algorithm for calculating user pairs' degree of separation in a social network