implement my_atoi function