sorted a stack using another stack