add clear methods for queue and stack