add atoi implementation