lined list queue and trees