Added more queue funnctionality in the Algorithm Model