added print and empty to Stack and Queue