adding implementations of atoi and atof