Programming on Stacks,Queues,Trees and Graphs