Small class for doing basic math in log space.