A simple unit conversion library in Java