added distance matrix and recoverd array of walking distances