C++ version of Roman numbers conversion functions