Added utility function

Implemented 'near', a function which checks if the difference of two values lies within a given tolerance.