Agent-based influenza epidemic model