added parallel calculation of distance and support for bulk distance calls.