Implement IntCodeToRegNum method