Fast exact shortest-path distance querying