Added negative numbers support to strtoi