This class stores various messages in multiple separate arrays:
messages which were received but not yet processed
messages to be executed
messages that need to be forwarded
old messages to prevent problems in broadcast mode
The arrays are not resized on every operation.