Return an accurate floating point sum of values
This was taken by NumPy and adapted for use here. It is more accurate than a standard sum, but still has numerical issues. Its main benefit is that it is about the same amount of time as a standard time with the added accuracy.
A vector of numbers to sum.
A sum of numbers with a rounding error of O(lg n) instead of O(n).