Implementation of MessageQueue

First implementation of message queue

Message queue management