Added mid-point sums function. Only plugged in on Mac side, now iOS yet. Doing so has altered the sum type enum and should effectively break the right summation function on the iOS side.