ppe_utils.c: fixed minor bug in variance calculation function