double CalculateMedianRecursive(double *inputList, int inputListLength, int lessThanSum, int greaterThanSum, bool evenTotal) { double *lessThanMedian, *greaterThanMedian; lessThanMedian = ( double* ) alloca( inputListLength * sizeof(double) ); greaterThanMedian = ( double* ) alloca( inputListLength * sizeof(double) ); int lessThanMedianListLength=0, greaterThanMedianListLength=0; double median=inputList[0]; int i; for (i=1; i < inputListLength; i++) { // If same value, spread among lists evenly if (inputList[i]