Queue implementation

removes glib dependency