Much more efficient and clear Roman numerals algorithm