Average of Shortest Paths

Function added