Added string to int algorithm in Go (with tests)