queue and stack implemented and tested