Queue implementation added

Added queue implementation to remove glib dependency