Changed total_patch_distance variables into unsigned long long values