Added private helper functions that calculate the closest crossroad
(which uses another helper function calculateDistance() which does as
expected!)