added my queue algorithm