refactor MessageQueue recv(), send() func
implement basic function in MessageQueue