add missing math header
move trait instantiations to math.hpp
add tests for BoundingBox