fixed patient_permutations function for edge cases of nan tumorsize or nan nodal involvement