Fix/real comparison
The comparison between two real numbers is done in many parts of the code not correctly, meaning with a fixed tolerance instead of a relative tolerance.
I added templated method to compare 2 real numbers of any type.
This fix issue #202 (closed).
Edited by Giacomo Castiglioni