Refactored Closeness Centrality

Changed logic of closeness centrality calculator to make it much faster.