Added queue class and a prioty queue