Added methods for calculating betweenness and closeness of nodes.
Added unit tests for closeness and betweenness calculation functions.