RomanNumeral optimization