Added Asan profile to help catch and fix various bugs (and indeed, there
were few of them).
Additionally, fixed bhunit macro to process arguments only once.
After some testing, I decided to ditch the DirectX approach of writing
math functions.
Additionally, I added unit tests (with reference wxMaxima calculations)
for most math functions and fixed several bugs along the way.