Java implementation of bi-directional roman numeral conversion