Added Stack and fixed errors

List.java had error, in which when list is emptied, it doesn't
actually remove the last element.