Java Unit class that can convert between basic unit of measurements