Debugging MapReduce naive Lua implementation