Fixed memory leak in wbSolution(); New floating point comparison

Hey @ashwin,

Please find attached a number of commits to wb.h. The most notable are:

* Fixed memory leak in wbSolution()
* Implemented a new floating-point comparison test that scales for magnitude