Fixed last node neighbor id and increased iteration number to 16 bits