implemented atoi.

known issue: overflows when input exceeds the limit.
bug fix & accepted.