Collapsed math library into single header file