SPD: reuse variable in GaussianNB for speedup

Small change which speeds up GaussianNB by about ~10% for large problems