shad/algo2: rename variable i -> pos
make cpplint happy