cpp implementation of Roman to Integer