Queue Algorithm implementation added