change little code expressions.
change 'PacketQueue' implementation to use STL queue.
refactoring tutorial04.cpp