Created queue object, malloc functions