added local partial distance half matrix calculator