Small math library for D