Fast relative comparisons of floating point numbers in C++
