added Stack algorithms